import { post, get } from '../http'

// 短租对账列表
export const getshortOrderBillList = (data) => post({ url: '/shortOrderBill/pageList', data })
// 数据汇总
export const getShortOrderBillSummary = (data) => post({ url: '/shortOrderBill/findStatistics', data })
// 数据总览
export const getShortOrderBillOverview = (data) => post({ url: '/shortOrderBill/findOrderStatistics', data })
// 批量修改费用
export const updateShortOrderBill = (data) => post({ url: '/orderFee/batchModify', data })
// 获取对账明细
export const getShortOrderBillDetail = (data) => post({ url: '/shortOrderBill/billInfoList', data })
// 修改对账日期
export const updateShortOrderBillBillTime = (data) => post({ url: '/shortOrderBill/modify', data })
// 获取结算明细
export const getShortOrderBillSettlementDetail = (data) => post({ url: '/shortOrderBill/settlementInfoList', data })
// 修改结算日期
export const updateShortOrderBillSettlementTime = (data) => post({ url: '/shortOrderBill/modifySettlementInfo', data })
// 获取对账明细
export const getShortOrderBillFeeList = (data) => post({ url: '/orderFee/orderBillFeeList', data })
// 完成对账
export const completeShortOrderBill = (data) => post({ url: '/shortOrderBill/batchConfirmBill', data })
// 撤销对账
export const revokeShortOrderBill = (data) => post({ url: '/shortOrderBill/revokeBill', data })
// 驳回/批量驳回
export const rejectShortOrderBill = (data) => post({ url: '/shortOrderBill/rejectBill', data })
// 添加对账备注
export const createRemarkShortOrderBill = (data) => post({ url: '/shortOrderBill/createRemark', data })

// 获取订单佣金详情
export const getCommissionInfo = (data) => post({ url: '/shortOrderBill/queryCommissionInfo', data })
// 修改佣金及比例
export const editCommission = (data) => post({ url: '/shortOrderBill/editCommission', data })
// 订单对账备注记录
export const billRemarkLogList = (data) => post({ url: '/shortOrderBill/billRemarkLogList', data })
// 订单结算备注记录
export const settlementRemarkLogList = (data) => post({ url: '/shortOrderBill/settlementRemarkLogList', data })
// 导出
export const exportExcel = (data) => post({ url: '/shortOrderBill/exportExcel', data })
// 下载对账导入模板
export const downloadTemplate = () =>
  get({
    url: '/shortOrderBill/downloadTemplate',
    config: {
      responseType: 'blob',
    },
  })
// 获取收付款方式
export const getAllAccount = (data) => post({ url: '/inExpAccount/getAllAccount', data })
// 获取短租费用名称列表
export const getShortOrderBillfeeNameList = (data) => post({ url: '/shortOrderBill/feeNameList', data })
